const menu = [
  {
    username: 'admin',
    rights: [
      {
        id: 1,
        authName: '票价管理',
        icon: 'el-icon-s-goods',
        children: [{
          id: 11,
          authName: '详细票价',
          path: 'order',
          rights: ['view', 'edit', 'add', 'delete']
        }]
      },
      {
        id: 2,
        authName: '营业员管理',
        icon: 'el-icon-open',
        children: [{
          id: 21,
          authName: '职工表管理',
          path: 'worker',
          rights: ['view', 'edit', 'add', 'delete']
        }]
      },
      {
        id: 3,
        authName: '门票处理',
        icon: 'el-icon-s-marketing',
        children: [{
          id: 31,
          authName: '门票销售',
          path: 'sales',
          rights: ['view', 'edit', 'add', 'delete']
        },{
            id: 32,
            authName: '退票管理',
            path: 'returnOrder',
            rights: ['view', 'edit', 'add', 'delete']
        }]
      },
      {
        id: 4,
        authName: '个人中心',
        icon: 'el-icon-s-custom',
        children: [{
          id: 41,
          authName: '基本资料',
          path: 'userinfo',
          rights: ['view', 'edit', 'add', 'delete']
        },
        {
          id: 42,
          authName: '重置密码',
          path: 'updatepwd',
          rights: ['view', 'edit', 'add', 'delete']
        },
        {
          id: 43,
          authName: '更新头像',
          path: 'updateAvatar',
          rights: ['view', 'edit', 'add', 'delete']
        }]
      }
    ]
  },
  {
    username: 'other',
    rights: [
      {
        id: 1,
        authName: '门票处理',
        icon: 'el-icon-s-marketing',
        children: [{
          id: 11,
          authName: '门票销售',
          path: 'sales',
          rights: ['view', 'edit', 'add', 'delete']
        },{
            id: 12,
            authName: '退票管理',
            path: 'returnOrder',
            rights: ['view', 'edit', 'add', 'delete']
        }]
      },
      {
        id: 2,
        authName: '个人中心',
        icon: 'el-icon-s-custom',
        children: [{
          id: 21,
          authName: '基本资料',
          path: 'userinfo',
          rights: ['view', 'edit', 'add', 'delete']
        },
        {
          id: 22,
          authName: '重置密码',
          path: 'updatepwd',
          rights: ['view', 'edit', 'add', 'delete']
        },
        {
          id: 23,
          authName: '更新头像',
          path: 'updateAvatar',
          rights: ['view', 'edit', 'add', 'delete']
        }]
      }
    ]
  }
]

module.exports = menu